<?php
require_once "repeat.class.php";

ignore_user_abort(0);
set_time_limit(0);

$startTime=date("Y-m-d H:i:s");
//$startTime="2017-7-31 17:50:50";
//print_r($d);
$temp=time();
$mail=[
    "Subject" => "测a1",
    "Body" => "<h1>测试$temp</h1>",
    "addAddress" => "czrll2@163.com",
    "addAttachment"=>'../miku.jpg,../gundam.jpg'

];
//$sTime,$function,$arr,$sendInterval=60,$times=5)
$s = new repeat($startTime,'sendMail',$mail,15,10);
$s->start();

